package com.atguigu.spzx.service.annotation;

import com.atguigu.spzx.service.config.UserInfoWebMvcConfiguration;
import com.atguigu.spzx.service.interceptor.UserInfoLoginAuthInterceptor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * ClassName: EnableUserLoginAuthInterceptor
 * Package: com.atguigu.spzx.service.annotation
 * Description:
 *      开启UserInfoLoginAuthInterceptor  -> 将配置了UserInfoLoginAuthInterceptor拦截器的springmvc配置类加入ioc中
 * @Author 刘强
 * @Create 2024/7/16 19:59
 * @Version 1.0
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({UserInfoWebMvcConfiguration.class, UserInfoLoginAuthInterceptor.class})
public @interface EnableUserLoginAuthInterceptor {

}
